---@class LuaDebug
local this = {IsEmmyLuaByIDEA = true}

function this.Init()
    if this.IsEmmyLuaByIDEA then
        package.cpath = package.cpath .. ';C:/Users/Admin/AppData/Roaming/JetBrains/IdeaIC2024.1/plugins/EmmyLua/debugger/emmy/windows/x64/?.dll'
        local dbg = require('emmy_core')
        dbg.tcpConnect('localhost', 9966)
    else
        package.cpath = package.cpath .. ";c:/Users/Administrator/.vscode/extensions/tangzx.emmylua-1.3.1/debugger/emmy/windows/x64/?.dll"
        local dbg = require("emmy_core")
        dbg.tcpListen("localhost", 9966)
    end
    print("开启Lua调试")
end

return this